package spring.ioc;

/**
 * @author 歪大哥😁
 * @date 2020-07-21.
 */
public class IocServiceImpl implements IocService {

    private String name;

    private Integer age;

    public IocServiceImpl(String name) {
        this.name = name;
    }

    public IocServiceImpl(){}

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String hello() {
        return "hello, my name is " + name + " and i am " + age + " years old";
    }
}
